import employees from '@/assets/constant/employees'
import dayjs from 'dayjs'

export default {
  // 聘用字符转换
  formatType(id) {
    const result = employees.hireType.find((item) => {
      return item.id === id
    })
    return result ? result.value : ''
  },
  // 时间格式化
  formatTime(time) {
    return dayjs(time).format('YYYY-MM-DD')
  }
}
